package com.tender.enums;

import lombok.Getter;

@Getter
public enum ErrorTypeEnum {

    DATA_NOT_EMPTY("SC_100000000", "data not empty", "%s数据不能为空"),
    RECORD_HAS_EXISTS("SC_100000001", "record has exists", "%s数据已经存在"),
    KEY_AES_128_NOT_EXISTS("SC_100000010", "AES secret key not exists", "AES key 不能为空"),
    AES_IV_NOT_EXISTS("SC_100000020", "AES IV not exists", "AES IV 不能为空"),
    KEY_AES_128_DECRYPT_ERROR("SC_100000030", "key aes 128 decrypt error", "AES key 解密失败"),
    REQUEST_PARAM_EXPIRED("SC_100000040", "request param has expired", "请求参数已过期"),

    ;
    private String errorCode;

    // 异常描述英文
    private String errorMsgEn;

    // 异常描述中文
    private String errorMsgCn;

    ErrorTypeEnum(String errorCode, String errorMsgEn, String errorMsgCn) {
        this.errorCode = errorCode;
        this.errorMsgEn = errorMsgEn;
        this.errorMsgCn = errorMsgCn;
    }
}
